<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>前端复习</title>
</head>
<style>
    .parent {
        background-color: red;
        position: absolute;
        height: 200px;
        width: 200px;
    }
    .child {
        position: relative;
        width: 100px;
        height: 100px;
        background-color: black;
        transition: 1s all;
        background-image: url(./龙蛋的素材库/OIP-C.jpg);
        /* background-size: cover; */
        background-position: 10px 10px;
    }
    .child:hover {
        border-radius: 50%;
        transform: scale(2) rotate(30deg);

    }
</style>
<body>
    <div class="parent"></div>
    <div class="child"></div>
    
</body>
</html>